Intersoft WebInput Documentation
How-to: Use edit format events
See Also Send Feedback
Intersoft WebInput > Features and Concepts > Client Side Events > How-to: Use edit format events

Glossary Item Box

WebInput.NET EditFormat has client side events model. Every client side event handler at least has 1 parameter (controlId).

In this topic, you will learn how to use EditFormat client side events in WebInput.

To use WebInput EditFormat events

  1. Drag WebInput instance to WebForm.
  2. Go to WebInput EditFormatClientSideEvents property.
  3. Add WebInput1_OnAfterValidate to OnAfterValidate event.
  4. Add WebInput1_OnBeforeValidate to OnBeforeValidate event.
  5. Add WebInput1_OnValidateError to OnValidateError event.
  6. Add WebInput1_OnAfterCharValidate to OnAfterCharValidate event.
  7. Add WebInput1_OnBeforeCharValidate to OnBeforeCharValidate event.
  8. In client side, add WebInput1_OnAfterValidate function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_OnAfterValidate(controlId)
    {
    alert("OnAfterValidate event is triggered");
    }

  9. In client side, add WebInput1_OnBeforeValidate function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_OnBeforeValidate(controlId)
    {
    alert("OnBeforeValidate event is triggered");
    }

  10. In client side, add WebInput1_OnValidateError function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_OnValidateError(controlId)
    {
    alert("OnValidateError event is triggered");
    }

  11. In client side, add WebInput1_OnAfterCharValidate function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_OnAfterCharValidate(controlId)
    {
    alert("OnAfterCharValidate event is triggered");
    }

  12. In client side, add WebInput1_OnBeforeCharValidate function and put the following code:

    JavaScript Copy ImageCopy Code
    function WebInput1_OnBeforeCharValidate(controlId)
    {
    alert("OnBeforeCharValidate event is triggered");
    }

  13. Compile and run the Project.

See Also